| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/LibreOffice/help/en-US/text/sbasic/shared/ |
Upload File : |
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<base href="../../../../">
<noscript><meta http-equiv="refresh" content="0; URL=../../../../en-US/noscript.html"></noscript>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Converting Time Values</title>
<link rel="shortcut icon" href="media/navigation/favicon.ico">
<link type="text/css" href="normalize.css" rel="Stylesheet">
<link type="text/css" href="prism.css" rel="Stylesheet">
<link type="text/css" href="default.css" rel="Stylesheet">
<script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="en-US/langnames.js"></script><script type="text/javascript" src="flexsearch.debug.js"></script><script type="text/javascript" src="prism.js"></script><script type="text/javascript" src="help2.js" defer></script><script type="text/javascript" src="a11y-toggle.js" defer></script><script type="text/javascript" src="paginathing.js" defer></script><script type="text/javascript" src="en-US/bookmarks.js" defer></script><script type="text/javascript" src="en-US/contents.js" defer></script><script type="text/javascript" src="help.js" defer></script><meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
<header id="TopLeftHeader"><a class="symbol" href="en-US/text/shared/05/new_help.html"><div></div></a><a class="logo" href="en-US/text/shared/05/new_help.html"><p dir="auto">LibreOffice 24.2 Help</p></a><div class="dropdowns"><div class="modules">
<button type="button" data-a11y-toggle="modules-nav" id="modules" aria-haspopup="true" aria-expanded="false" aria-controls="modules-nav">Module</button><nav id="modules-nav" hidden=""></nav>
</div></div></header><aside class="leftside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1" dir="auto">Contents</label><div id="Contents" class="contents-treeview"></div></aside><div id="SearchFrame"><div id="Bookmarks">
<input id="search-bar" type="search" class="search" placeholder="Search in bookmarks for chosen module" dir="auto"><div class="nav-container" tabindex="0"><nav class="index" dir="auto"></nav></div>
</div></div>
<div id="DisplayArea" itemprop="softwareHelp" itemscope="true" itemtype="http://schema.org/SoftwareApplication">
<a name="timevalues"></a>
<h1 id="hd_id3147226" dir="auto">Converting Time Values</h1>
<p id="par_id3149415" class="paragraph" dir="auto">The following functions convert time values to calculable numbers.</p>
<div class="embedded">
<a name="hour"></a>
<h2 id="hd_id3156042" dir="auto"><a target="_top" href="en-US/text/sbasic/shared/03030201.html">Hour Function</a></h2>
<p id="par_id3149346" class="paragraph" dir="auto">Returns the hour from a time value that is generated by the TimeSerial or the TimeValue function.</p>
</div>
<div class="embedded">
<a name="minute"></a>
<h2 id="hd_id3155419" dir="auto"><a target="_top" href="en-US/text/sbasic/shared/03030202.html">Minute Function (BASIC)</a></h2>
<p id="par_id3156344" class="paragraph" dir="auto">Returns the minute of the hour that corresponds to the serial time value that is generated by the TimeSerial or the TimeValue function.</p>
</div>
<div class="embedded">
<a name="second"></a>
<h2 id="hd_id3153346" dir="auto"><a target="_top" href="en-US/text/sbasic/shared/03030204.html">Second Function</a></h2>
<p id="par_id3156023" class="paragraph" dir="auto">Returns an integer that represents the seconds of the serial time number that is generated by the TimeSerial or the TimeValue function.</p>
</div>
<div class="embedded">
<a name="timeserial"></a>
<h2 id="hd_id3143271" dir="auto"><a target="_top" href="en-US/text/sbasic/shared/03030205.html">TimeSerial Function</a></h2>
<p id="par_id3156344" class="paragraph" dir="auto">Calculates a serial time value for the specified hour, minute, and second parameters that are passed as numeric value. You can then use this value to calculate the difference between times.</p>
</div>
<div class="embedded">
<a name="timevalue"></a>
<h2 id="hd_id3149670" dir="auto"><a target="_top" href="en-US/text/sbasic/shared/03030206.html">TimeValue Function</a></h2>
<p id="par_id3153361" class="paragraph" dir="auto">Calculates a serial time value from the specified hour, minute, and second - parameters passed as strings - that represents the time in a single numeric value. This value can be used to calculate the difference between times.</p>
</div>
<div class="embedded">
<a name="cdatetounotime"></a>
<h2 id="hd_id3150620" dir="auto"><a target="_top" href="en-US/text/sbasic/shared/03030113.html">CDateToUnoTime Function</a></h2>
<p id="par_id3151097" class="paragraph" dir="auto">Returns the time part of the date as a UNO com.sun.star.util.Time struct.</p>
</div>
<div class="embedded">
<a name="cdatefromunotime"></a>
<h2 id="hd_id3150620" dir="auto"><a target="_top" href="en-US/text/sbasic/shared/03030114.html">CDateFromUnoTime Function</a></h2>
<p id="par_id3151097" class="paragraph" dir="auto">Converts a UNO com.sun.star.util.Time struct to a Date value.</p>
</div>
<div class="embedded">
<a name="cdatetounodatetime"></a>
<h2 id="hd_id3150620" dir="auto"><a target="_top" href="en-US/text/sbasic/shared/03030115.html">CDateToUnoDateTime Function</a></h2>
<p id="par_id3151097" class="paragraph" dir="auto">Returns the time part of the date as a UNO com.sun.star.util.DateTime struct.</p>
</div>
<div class="embedded">
<a name="cdatefromunodatetime"></a>
<h2 id="hd_id3150620" dir="auto"><a target="_top" href="en-US/text/sbasic/shared/03030116.html">CDateFromUnoDateTime Function</a></h2>
<p id="par_id3151097" class="paragraph" dir="auto">Converts a UNO com.sun.star.util.DateTime struct to a Date value.</p>
</div>
</div>
<div id="DonationFrame"></div>
<footer><div id="DEBUG" class="debug">
<h3 class="bug">Help content debug info:</h3>
<p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/sbasic/shared/03030200.xhp" target="_blank">/text/sbasic/shared/03030200.xhp</a></p>
<p dir="auto">Title is: Converting Time Values</p>
<p id="bm_module" dir="auto"></p>
<p id="bm_system" dir="auto"></p>
<p id="bm_HID" dir="auto"></p>
</div></footer>
</body>
</html>